<extend name="Index/index" />
<block name="mycss">
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css">
    <link rel="stylesheet" href="__PUBLIC__/my.css">
    <link rel="stylesheet" href="__PUBLIC__/question.css">
    <script src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
</block>

<block name="main">
        <div class="container">
        <div class="row">
        <div class="col-md-7 col-md-offset-1">
        <div class="yaoqi mt10 fenge">
        <b>我关注的问题(<{:count($rowss)}>)</b>
        </div>
        <div>
            <for start="0" end="count($rowss)">
                <div class="went1" ht="<{$rowss[$i]['id']}>">
                <div class="fl" style="width:70px;height:60px;background-color: #EFF6FA;"><h4><{$rowss[$i]['topic_name']}><br></h4></div>
                    <div><a href="<{:U('Question/detail')}>?qid=<{$rowss[$i]['id']}>"><h4><{$rowss[$i]['name']}></h4></a></div>
                    <div class="fl qug">取消关注</div>
                    <div class="fl"><b>·</b></div>
                    <div class="fl"><{$rowss[$i]['answer_num']}>个回答</div>
                    <div class="fl"><b>·</b></div>
                    <div><{$rowss[$i]['attend_num']}>个关注</div>
                </div>
                </for>
        </div>
        </div>

        <div class="col-md-3">
            <div class="h6 rightshow">
                        <a href="<{:U('Index/index')}>"  style="color:#888"><span class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;知乎首页</a>

                        <a href="<{:U('Collections/index')}>"  style="color:#888"><span class="glyphicon glyphicon-bookmark"></span>&nbsp;&nbsp;我的收藏</a>

                        <a href="<{:U('Question/following')}>"  style="color:#888"><span class="glyphicon glyphicon-check"></span>&nbsp;&nbsp;我关注的问题</a>

                        <a href="<{:U('Topics/index')}>" style="color:#888"><span class="glyphicon glyphicon-th-large"></span>&nbsp;&nbsp;话题广场</a>

                    </div>

                    <h5 class="mt30"> <b><img src="__PUBLIC__/images/2016-07-21_141413.jpg">&nbsp;&nbsp;知乎专栏</b> </h5>
                    <div class="h6 rightshow">
                        <a href="<{:U('Explore/index')}>"  style="color:#888">发现</a>
                        <a href="<{:U('Article/index')}>"  style="color:#888">文章</a>
                    </div>
                    <div >© 2016 知乎</div>
        </div>
        </div>
        </div>
</body>
<script>
    $(function(){
        $('#try tr td').mouseover(function(){
            $(this).children().css("color","#225599");
            $(this).children().css("color","#225599");
        })
        $('#try tr td').mouseout(function(){
            $(this).children().css('color','#666');
            $(this).children().css("color","#666");
        })
        $('.chacha').mouseover(function(){
            $(this).css('cursor','pointer');
        })
        $('.chacha').click(function(){
            $(this).parent().parent().slideUp("1000");
        })

            $('.qug').bind({
                'mouseover':function(){
                    $(this).css('cursor','pointer');
                },
                'click':function(){
                    if($(this).text() == '取消关注')
                    {
                        var id = $(this).parent().attr('ht');
                        $.ajax({
                            type:'get',
                            url:"<{:U('Home/Question/quguan')}>"+'?id='+id,
                        });
                        $(this).text('关注');
                    }else if($(this).text() == '关注')
                    {var id = $(this).parent().attr('ht');
                        $.ajax({
                            type:'get',
                            url:"<{:U('Home/Question/guan')}>"+'?id='+id,
                        });
                        $(this).text('取消关注');
                    }
                    
            
                },
            })
            
    })



</script>
</block>